<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The HttpInflateStream class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="httpdeflatestream.update.html">HttpDeflateStream::update</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="httpinflatestream.construct.html">HttpInflateStream::__construct</a></div>
 <div class="up"><a href="book.http.html">HTTP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.httpinflatestream" class="reference">
 <h1 class="title">The <a href="class.httpinflatestream.html" class="classname">HttpInflateStream</a> class</h1>
 
 <div class="partintro"><p class="verinfo">(PECL pecl_http &gt;= 0.21.0)</p>
  <div class="section" id="httpinflatestream.synopsis">
   <h2 class="title">类摘要</h2>
   <div class="classsynopsis">
    <div class="ooclass"></div>
    <div class="classsynopsisinfo">
     <span class="ooclass"><strong class="classname">HttpInflateStream</strong></span>
     {</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="methodname"><a href="httpinflatestream.construct.html" class="methodname">__construct</a></span>
    ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code><span class="initializer"> = 0</span></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">HttpInflateStream</span>
   <span class="methodname"><a href="httpinflatestream.factory.html" class="methodname">factory</a></span>
    ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code><span class="initializer"> = 0</span></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$class_name</code><span class="initializer"> = &quot;HttpInflateStream&quot;</span></span>
  ]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">string</span><span class="methodname"><a href="httpinflatestream.finish.html" class="methodname">finish</a></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">string</span><span class="methodname"><a href="httpinflatestream.flush.html" class="methodname">flush</a></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">string</span><span class="methodname"><a href="httpinflatestream.update.html" class="methodname">update</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
   )</div>

   }</div>
  </div>

 <div class="section" id="http.httpinflatestream.members">
  <h2 class="title">Class Members</h2>
  <div class="section" id="http.httpinflatestream.constants">
   <h2 class="title">Constants</h2>
   <table class="doctable table">
    
    
     <thead>
      <tr>
       <th>Type</th>
       <th>Name</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>int</td>
       <td>FLUSH_NONE</td>
       <td>no forced flush</td>
      </tr>

      <tr>
       <td>int</td>
       <td>FLUSH_SYNC</td>
       <td>synching flush</td>
      </tr>

      <tr>
       <td>int</td>
       <td>FLUSH_FULL</td>
       <td>full flush</td>
      </tr>

     </tbody>
    
   </table>

   <blockquote class="note"><p><strong class="note">Note</strong>: 
    <p class="para">
     Flushing usually has no effect on inflate streams.
    </p>
   </p></blockquote>
  </div>
 </div>
 <div class="section">
  <h2 class="title">范例</h2>
  <p class="para">
   <div class="example" id="example-4257">
    <p><strong>Example #1 A <strong class="classname">HttpInflateStream</strong> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$stream&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">HttpInflateStream</span><span style="color: #007700">;<br />echo&nbsp;</span><span style="color: #0000BB">$stream</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">update</span><span style="color: #007700">(</span><span style="color: #0000BB">$data</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #0000BB">$stream</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">finish</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

   </div>
  </p>
 </div>
</div>




































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="httpinflatestream.construct.html">HttpInflateStream::__construct</a> — HttpInflateStream class constructor</li><li><a href="httpinflatestream.factory.html">HttpInflateStream::factory</a> — HttpInflateStream class factory</li><li><a href="httpinflatestream.finish.html">HttpInflateStream::finish</a> — Finalize inflate stream</li><li><a href="httpinflatestream.flush.html">HttpInflateStream::flush</a> — Flush inflate stream</li><li><a href="httpinflatestream.update.html">HttpInflateStream::update</a> — Update inflate stream</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="httpdeflatestream.update.html">HttpDeflateStream::update</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="httpinflatestream.construct.html">HttpInflateStream::__construct</a></div>
 <div class="up"><a href="book.http.html">HTTP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
